import Vue from 'vue'
import Vuex from 'vuex'

import city from './modules/city'
import user from './modules/user'
import getters from './getters'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 底部通栏菜单是否显示
    isfootershow: true
  },
  getters,
  mutations: {
    setFooterShow(state, data) {
      state.isfootershow = data
    }
  },
  modules: {
    city,
    user
  }
})
